﻿using Expect.Core.Helpers;
using Expect.Core.Interfaces;

namespace Expect.Core.Fixtures
{
    /// <summary>
    /// Fixture for locating fluent methods on an actor. This fixture could be a replacement for ActionFixture
    /// </summary>
    public class ActorFixture : AbstractFixture, IActorFixtureFormat
    {
        /// <summary>
        /// Execute the fixture for the provided row
        /// </summary>
        public override bool? RunRow()
        {
            return Context.RunAsFluentFixture(this.Fixture, this.Row, this);
        }
    }
}
